const {
    Mysql
} = require('../tools/utils');
module.exports = async (ctx) => { 
    let vid = +ctx.query.vid;
    let sql = `SELECT * from tv where vid=${vid}`;
    let list = await Mysql(sql);
    ctx.state.data = {
        code: '001',
        list: list.length ? list[0] : null
    }
}